<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet"/>
<title>New Faculty page</title>
</head>
<body>

     <%! private String temp = "Matt";%>
  
  <nav class="navbar navbar-inverse" role="navigation">
  <ul class="nav navbar-nav">
      <li class="active"><a href="${pageContext.request.contextPath}/register/list.html">Job</a></li>
      <li><a href="${pageContext.request.contextPath}/faculty/list.html">Faculty</a></li>
      </ul>
      
      <ul class="nav navbar-nav navbar-right">
      <li><a href="${pageContext.request.contextPath}/faculty/create.html">Add</a></li>
      <li><a href="${pageContext.request.contextPath}/faculty/edit/${faculty.facultyID}.html">Edit</a></li>
  
     <%if(/*userBean.getType.equals("Admin")*/ temp.equals("Matt")){ %>
     		<li><a href="${pageContext.request.contextPath}/faculty/delete/${faculty.facultyID}.html">Delete</a></li>
     	<%} %>
    </ul>
</nav>


<form:form method="POST" commandName="faculty" action="${pageContext.request.contextPath}/faculty/view/${faculty.facultyID}.html" >

<div class="panel panel-default">
  <div class="panel-heading">Name</div>
  <div class="panel-body">

<p>First Name: ${faculty.firstName}</p>
<p>Last Name: ${faculty.lastName}</p>
  </div>
</div>


<div class="panel panel-default">
  <div class="panel-heading">Personal Information</div>
  <div class="panel-body">
<p>Date of Birth: ${faculty.dateOfBirth}</p>
<p>Gender: ${faculty.gender}</p>
  </div>
</div>


<div class="panel panel-default">
  <div class="panel-heading">Faculty Information</div>
  <div class="panel-body">
<p>Department: ${faculty.department}</p>
<p>Title: ${faculty.title}</p>
<p>Email: ${faculty.email}</p>
  </div>
</div>
</form:form>
</body>
</html>